
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.app.adminuser;

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.framework.common.pojo.PageResult;
import com.hlkj.pay.vo.admin.req.user.MenuPageQueryReq;
import com.hlkj.pay.vo.admin.resp.menu.RoleDetailMenuResp;
import com.hlkj.pay.vo.admin.resp.permission.PermissionDetailResp;

import java.util.List;
/**
 * @author HlpayTeam
 * @date 2024/09/03 14:17
 */
public interface IPermissionAppService {
	/**
	 * 查询权限树
	 * @param sysType
	 * @return
	 */
	List<RoleDetailMenuResp> queryPermission(MenuPageQueryReq menuPageQueryReq);
	/**
	 * 查询权限树
	 * @param sysType
	 * @return
	 */
	PageResult<RoleDetailMenuResp> queryPermissionPage(MenuPageQueryReq menuPageQueryReq);
	/**
	 * 权限详情
	 * @param permissionCode
	 * @return
	 */
	CommonResult<PermissionDetailResp> queryPermissionDetail(String code);
	/**
	 * 新增权限
	 * @param permissionDetailReq
	 * @return
	 */
	CommonResult<String> addPermission(PermissionDetailResp permissionDetailReq);
	/**
	 * 修改权限
	 * @param permissionDetailReq
	 * @return
	 */
	CommonResult<Void> updatePermission(PermissionDetailResp permissionDetailReq);
	/**
	 * 删除权限
	 * @param roleCode
	 * @return
	 */
	CommonResult<Void> deletePermission(String roleCode);
}
